<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title></title>
	<link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
	<script src="../script/api.js"></script>
	<style>

	</style>
</head>

<body>
	<header id='header' class="aui-bar aui-bar-nav" style="background-color: #03a9f4">
		<a class="aui-pull-left aui-btn" onclick="api.closeWin();">
			<span class="aui-iconfont aui-icon-left"></span>
		</a>
		<div class="aui-title" id="middle">
			<!--<img src='../image/logo-smaller.png'/>-->
		</div>
	</header>
</body>
<script>
	apiready = function() {
		var header = $api.byId('header');
		//$api.fixIos7Bar(header);

		var headerPos = $api.offset(header); //获取元素在页面中的位置与宽高
		var pageUrl = api.pageParam.url;
		var title = api.pageParam.title;
		var invoiceplancode = api.pageParam.invoiceplancode;
		var exTypeId = api.pageParam.exTypeId;
		var exType = api.pageParam.exType;
		var exceptionType = api.pageParam.exceptionType;
		var workCenterId = api.pageParam.workCenterId;
		var mrlId = api.pageParam.mrlId;
		var mrlCode = api.pageParam.mrlCode;
		var workCellId = api.pageParam.workCellId;

		var centerFlag = api.pageParam.centerFlag;
		var cellFlag = api.pageParam.cellFlag;

		var usmBillId = api.pageParam.usmBillId; //异常bill记录


		//  var div = document.getElementById('middle');
		// 	div.innerHTML = "<strong id='title'>"+title+"</strong>";
		//
		var frameH = api.winHeight - headerPos.h;

		var title = api.pageParam.title;
		var div = document.getElementById('middle');
		div.innerHTML = "<strong id='title'>" + title + "</strong>";

		api.openFrame({
			name: 'about-con',
			url: pageUrl,
			rect: {
				x: 0,
				y: headerPos.h,
				w: 'auto',
				h: frameH
			},
			pageParam: {
				exTypeId: exTypeId,
				exType: exType,
				exceptionType: exceptionType,
				workCenterId: workCenterId,
				mrlId: mrlId,
				mrlCode: mrlCode,
				centerFlag: centerFlag,
				cellFlag: cellFlag,
				workCellId: workCellId,
				usmBillId: usmBillId,
				invoiceplancode: invoiceplancode,
			},
			bgColor: '#FFFFFF',
			showProgress: true,
			bounces: false
		});

	}
</script>

</html>
